import { CardEditableParamsDefault, CardDataEditableParamsCommonDefault } from "@/views/card/js/data/cardDatas/card-datas-default.js";
import TooltipsData from "@/views/card/js/data/tooltipsData/tooltips-data.js";
const CARD_19 =  {
    mode: {
      ...CardEditableParamsDefault.DropdownNormal,
      label: '显示样式',
      placeholder: '请选择',
      valLists: [
        {
          name: '上图+下文样式',  // 默认类型
          value: '0',
        },
        {
          name: '2行文字样式',
          value: '1',
        },
        {
          name: '图片、文字、描述样式',
          value: '2',
        },
        {
          name: '上图+下文样式(支持展开)',
          value: '3',
        },
        {
          name: '左侧文本、文字、描述样式',
          value: '4',
        },
      ],
    },
    default_rows: {
      ...CardEditableParamsDefault.SliderNormal,
      label: '控制行数',
      step: 1,
      max: 10,
      min: 0,

      param_effect_parent: {
        effect_parent_keys: ['mode'],
        effect_type: ['SHOW_HIDE'],
        effect_parent_val: '3',
        effect_clear: {  // 有则 清除
          effect_clear_default_val: 0,  // default
        },
      },
    },
    col: {
      ...CardEditableParamsDefault.SliderNormal,
      label: '每行显示个数',
      step: 1,
      max: 10,
      min: 0,
    },
    divider_color: {
      ...CardEditableParamsDefault.ColorNormal,
      label: '分割线颜色',
      value: '#AAAAAA',
      format: 'hex',
      isAlpha: false,
    },
    card_bg_color: {
      ...CardEditableParamsDefault.ColorNormal,
      label: '背景颜色',
      value: '#FFFFFF',
      format: 'hex',
      isAlpha: false,
    },
    group: {
      ...CardEditableParamsDefault.Lists,
      label: '样式配置',
      param_params: {
        title_sub: {
          ...CardEditableParamsDefault.InputNormal,
          label: '名称',
          placeholder: '请填入名称',
        },
        item_title: {
          ...CardEditableParamsDefault.InputNormal,
          label: '文本',
          placeholder: '请填入文本',
        },
        title_color: {
          ...CardEditableParamsDefault.ColorNormal,
          label: '文字颜色',
          value: '#507daf',
          format: 'hex',
          isAlpha: false,
        },
        item_lefttitle: {
          ...CardEditableParamsDefault.InputNormal,
          label: '左侧文本',
          placeholder: '请填入左侧文本',
        },
        lefttitle_color: {
          ...CardEditableParamsDefault.ColorNormal,
          label: '左侧文本颜色',
          value: '#FF8200',
          format: 'hex',
          isAlpha: false,
        },
        item_desc: {
          ...CardEditableParamsDefault.InputNormal,
          label: '底部导航',
          placeholder: '请填入底部导航',
        },
        desc_color: {
          ...CardEditableParamsDefault.ColorNormal,
          label: '底部导航颜色',
          value: '#507daf',
          format: 'hex',
          isAlpha: false,
        },
        pic: {
          ...CardEditableParamsDefault.ImageNormal,
          label: '底部导航图标',
          res_type: 'String',  // Array : fileList, String : value
          placeholder: '尺寸严格按照1:1，小于100kb，png格式',
          limit: 1,
          size: 100,
          accept: '.png',
          tooltips: TooltipsData.image[2],
        },
        scheme: {
          ...CardEditableParamsDefault.InputNormal,
          label: '跳转链接',
          placeholder: '请填入跳转链接',
        },
      },

      param_effect_parent: {
        effect_parent_keys: ['mode'],
        effect_type: ['ADD_ITEM'],
        effect_parent_val: '',
        effect_clear: {  // 有则 清除
          effect_clear_default_val: [],  // default
        },
        effect_list_params: [
          {
            effect_regular: new RegExp("^[0,3]$"),
            effect_list_params_keys: ['group', '0'],
          },
          {
            effect_regular: new RegExp("^1$"),
            effect_list_params_keys: ['group', '1'],
          },
          {
            effect_regular: new RegExp("^2$"),
            effect_list_params_keys: ['group', '2'],
          },
          {
            effect_regular: new RegExp("^4$"),
            effect_list_params_keys: ['group', '3'],
          },
        ],
      },
    },
    ...CardDataEditableParamsCommonDefault,
  };
export default CARD_19;